package com.heima.Service.impl;

import com.heima.Dao.Student;
import com.heima.Dao.Teacher;
import com.heima.Service.TeacherService;

public class TeacherServiceImpl implements TeacherService {

    private Teacher teacher;

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public void one() {
        teacher.one();

        System.out.println("TeacherService one ...");
    }
}
